package com.jk.bggoods.dao;

import com.jk.bggoods.entity.*;
import com.jk.bggoods.pojo.GoodsEntity;
import com.jk.damaicommon.entity.DistrEntity;
import com.jk.damaicommon.wlentity.SessionSiteEntity;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsDao {
    List<GoodsEntity> selectAllGoods(GoodsEntity goods);

    Integer getGoodsCount(GoodsEntity goods);

    void downGoods(Integer goodsId);

    void upGoods(Integer goodsId);

    GoodsEntity selectOneGoods(Integer goodsId);
    //王乐商品详情
    GoodsDetailEntity getGoodsById(Integer goodsId);
    //王乐城市动态下拉
    List<CityEntity> getCitySelect();
    //类型动态下拉树
    List<GoodsTypeEntity> getTypeSelect();
    //系列活动 动态下拉
    List<GoodsActiveEntity> getActiveSelect();
    //新增商品
    void addGoods(GoodsDetailEntity goods);
    //新增场次
    void addGoodsSeaaion(GoodsSessionEntity session);
    //新增档次
    void addGoodsLeave(GoodsLeaveEntity leave);
    //获取配送方式
    List<DistrEntity> getDistr();
    //新增配送中间表
    void addDistr(GoodsDetailEntity goods);
    //hui 收站
    List<GoodsEntity> recycleSelectAll(GoodsEntity goods);

    Integer getRecycleCount(GoodsEntity goods);
    // 彻底删除
    void deleteThisGoods(Integer goodsId);
// 新增系列活动
    void addActive(ActiveEntity activeEntity);
    //获取开始结束时间
    GoodsDetailEntity getGoodsTime(GoodsDetailEntity goods);
    //修改开始结束时间
    void updateGoodsTime(GoodsDetailEntity goods2);
    //座位场次列表
    List<SessionSiteEntity> getSessionList(SessionSiteEntity sessionSite);
    //档次动态下拉
    List<GoodsLeaveEntity> getLeaveSelect(Integer id);
    //查商品id
    Integer getGoodsId(Integer sessionId);
    //存座位信息
    void saveSite(SessionSiteEntity site);
    //查询座位表
    String getSite(Integer id);
}
